Move methods from Plugin to FileHistoryDao