Move common extension into controller directory.

See #10.