you really nailed it on the head, In way less of a way I made somewhat of a similar switch (not at all similar in the level of helping the world) from working at a huge national health/property insurance company (the literal devil) and now work for a welfare related government agency and I think not working for the devil REALLY helps as you say with sleeping at night, hopefully I can somehow make up karmically lol.