[spram] Move location classification outside hmm