Move defination of constants near type mapping