Add remove_debris functionality

This patch adds the functionality required by remove_debris.py and
obsoletes the older script.
Fix formatting to pass linter

As the title suggests, this patch fixes the lint checks that were not
addressed in the previous commits.