Theme Update Endpoint: moving functions to the parent class so they are accessible by other endpoints