Using interface as dependency instead of a concrete class