Refactor: Moved all Polyobj_* functions to methods of Polyobj