Optimal place to install GCode to switch MC Fan on and off in P1P

This is not the chamber fan, which works the same way as X1C when installed into a P1P, rather the motherboard fan which is disabled in the P1P firmware as it has a heatsink installed.