Added indirection to avoid using concrete class.