refactoring to move the logic for the "find*ById" method out of __callStatic