Removes unnecessary neo4j references