Replace concreate class with interfaces.