I’m not quite sure what you mean there, but you can adapt the tinker firmware to keep what you want and add whatever functionality you need.
If you can elaborate a bit more?
There is also this thread
Help appending code to the Tinker Firmware for Photon