refactoring httpLoggingFilter, move some classes out the filter