getting this to compile

I don't agree it looks cleaner (the mere fact you had to add a method just for testing purposes introduces a smell). As I said - we could introduce a DI container or just see in how many places this needs to be passed.