Remove unnecessary dependencies from target