Refactor delete link to be DRY