Implemented object flattening, removed unused deps.