Refactor code to filter kwargs into function
Refactor code to filter kwargs into function

This just makes the code slightly easier to read.

alphagov/stagecraft,alphagov/stagecraft,alphagov/stagecraft,alphagov/stagecraft