Extract common configuration in to a module