Move defaults into variable in hooks.py