remove unused constants from solutions