Refactored resourcer into independent module