Refactor PayMaster by removing attr_writter