attempts trying to refactor provide_condition.rb - probs with filters-by-accept-headers