Further optimize migration of bbcodes