Moved the method that optimizes control structures in PHP sources to its own class