This week I faced a moral problem when planning a rewrite of a part of our system. The problem was, I…