preparations for refactoring parts of filterByField into prepareView