Use early returns and factor the object::Binary creation.