replace literals with constants (REVIEW-4250)