remove unchanged dependencies and overlay the classes with patches