Move service definition to build.php