I think people who are using "literally" as emphasis instead of really meaning "in a literal sense" are criticized too much. It's just how language evolves.
But saying "literally by definition" for something that has nothing to do with the definition doesn't feel like emphasis, it feels like lying.