Move declarations to the front of blocks