Rewrite tool to simplify code - splitting pakefile.php in multiple parts