Refactor obj getting