Refactor first section of bestair endpoint completion flag.sas. Add bestair_check_macros.sas.