Should Discourse's two BBCode rewriting approaches share a core API?

Let’s see what @gerhard and @martin think, they have the most context.