Adds PageFilter#findLayoutPath to reduce duplicate code.