Refactor: from long function to small units | Half Shell Studios