There is more repetition, but it's easier to read and '%timeit Revision.from_dict(d)' is 5 times faster.