If I choose not to do evil then less evil is done in total. The amoral person who takes the Facebook job is not doing whatever evil they would have been doing instead.
I don't see a contradiction. If I avoid doing evil less evil will be done. And if we outlaw a particular kind of evil that will likely reduce the incidence of that kind of evil. Both things are helpful.