Moving constants to preference util.