Put finished grammar rule in the correct place