Avoid classes having too many children (PHP) | CAST Appmarq