Refactor to remove code duplication from ServerConfigurationBean.