refactoring : put helper function into Neo4j object