Feature protocolize storage

Split metric storage and path index building into separate protocols