Moves enabled php execution into a static method.