Improve feature performance

These filtering documents features were taking approximately 70 seconds to complete. By reducing the number of Capybara matcher calls, we get the running time down to 33 seconds.