Aviod code duplication in timezone configuration handling