Move common bank_entry and accounting_entries validations into a module