Fix hooks loaded multiple times in development environment

Only patches should live in config.to_prepare blocks. In this case if
the hooks are loaded twice, any click on a role result in the toggling
happenning twice, e.g. nothing happens...