Refactor: Separate domain-facade functions supposed to be used from
use-case layer from domain functions supposed to be internal
implementation details of domain-facade. All domain functions take db as
a first argument.