Code cleanup: indentation fixes and remove incorrect TODOs

Also remove some code related to COPY, since the implementation is
not finished, nothing happens as the action is selected.