factored out authority calculation logic (so we can change it more easily
factored out authority calculation logic (so we can change it more easily

Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core