Generate correct consts for labels