She played the role for three seasons (1963--1965), before being written out of the show to further explore her career.
She played the role for three seasons (1963--1965). This was before. She was being written out of the show to further explore her career.