Add replaceSplits to generate new definition

Given a line and a list of updates, return new versions of that line
with updates applied