Mark some functions in Effect as const.