Replace constants with their values.