since you changed their values, you need to change the keys `remove-attachment` and `replace-attachment`. What about `remove-attachment-generic` and `replace-attachment-generic` ? Should be easy to change the code to do this.