refactoring: extracted function build_configuration_rpms_from.