Create hooks as decorators