The cost of the code should be weighed against its benefits; at design review, code review, and launch review.