Refactor browser parsing into new module.