dbe: resolve api-impl cycles