Refactor global filters/validators