Canberra has reallocated thousands of roles formerly performed by consultants and external hires to public servants.