Refactoring body in handlers