Refactoring for Pyblish Endpoint integration