refactor hammer