Extract class from primary php file, rename files