Refactored brb.to parser