Removes concrete type to interface in methods.