Generally I try to push my changes to code upstream, but it's not really an option when I'm removing functionality (eg in Hubot scripts).