First Minister John Swinney announced the move in his programme for government, alongside plans to cut health boards from 14 to two.