I would remove the `revision` field and add it as a parameter of this method. This would make this class immutable.