bbb: delete/replace in specific order

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>