Moved doctrine settings into common module