LPS-48247 Comments API: modularize Spring configuration, circular reference affects functional tests