Segregate the context merging in a different routine