Moves graph index configuration to injection time and extracts
transactional management to a separate module.