Move bbcode stuff to a template filter.