HSHARDS-71 Sharded session factory configuration should be redeveloped

PR depends on all previous PRs