Remove duplication from create controllers.

Extracted the common behavior across the create controllers into a
shared/create-statement controller. Template method pattern.