[GEM] Add binding_of_caller and factor out header into partial