Andrew Lloyd Webber and Giacomo Puccini followed the same path. In their early works, they are profligate with their melodic material. "Jesus Christ Superstar" and "La Boheme" had one great number after another. Later on, both men fell into the pattern of one commercial hit per opera, with the rest being nondescript or repetitive.
Do you remember the name of the Mendelssohn piece?