Remove a little duplication and makes it easier to see how the class is
actually used. Would normally be stored in a separate file, but I didn't
really want to create one.
Will match for any versions later than the given version. Note that the
first match is the successful one, so will need to put versions in
reverse order, as will be seen in next commit.