Remove old linearEmbedding code