Thinking of code only as a cost without considering its value is very peculiar. It seems to me like thinking of words in a newspaper story as a cost.
One could reduce the cost of both code and words to zero. Would that help the business deliver value?