Split hook implementation from main module file

https://www.drupal.org/node/2351119