media: minor refactor util/BodyParser