Pull modal delete functionality into separate directive.