Refactor method creation