Trigger change and replace deprecated functions
When "My Billing Address is the same" is checked the billing fields do not always get updated when the postcode is entered. This is because the address fields that are auto-filled do not trigger the "change" event. So we manually trigger it.
Also replace CRM_Core_BAO_Setting calls with \Civi::settings().