Move some settings into common file