IoC for message factory + logging in handler