support translation_domain inside OptionsResolverInterface::setDefaults and some refactoring