refactor: simplify parse_radius related stuff.