perform_remove_constants function

Remove constant data.