The plan is actually good and you should have done it from the start.
Consider link worth from spammy site as 0.2 as compare to a link from great resource as 8.
so if you loose 40 links from spammy site, and gained one link from good site it will be balanced or more beneficial.
Don't worry about loosing your reciprocal links if you intend to work on the plan of gaining more links from reputable sites!