[core] Removes unused getting of Constant