split to Base and Constant classes