This could be rewritten to use one before fitler with `before do; end`