In determining the amount of any penalty to be assessed under paragraph (1), the Secretary shall take into account (A) the previous record of the person in terms of compliance with this chapter and with comparable requirements of the Farm Labor Contractor Registration Act of 1963 [
7 U.S.C. 2041 et seq.], and with regulations promulgated under this chapter and such Act, and (B) the gravity of the violation.