CAPX-51 | Refactored orphan functionality & fixed entity update where it wasnt updated capx_profiles
CAPX-51 | Added batch process and endpoint for orphan functionality