Define `before_remove_const` callback

Closes #465
Merge pull request #477 from haines/issue_465

Define `before_remove_const` callback