Extract WebMvcProperties from WebMvcAutoConfiguration and also update conditionals to use @ConditionalOnProperty.