Move all index functionality into it's own namespace.