Remove redundant package dependencies. Use lodash to get an objects function list