I think this is wrong to duplicate code in this way. @dmajda: IMHO y2r should be improved to generate `case :primary, :logical` for this.