Update hook to revert file_type and file_display tables.

From #3206.