Refactor boilerplate.

Automatically register keys based on "Verbs".