Yog's Law and Self-Publishing.
Yog's Law is very simple: Money flows toward the author.
For commercial publishing, this is absolutely true. Once you've moved away from it, you're out of the realm of commercial publishing.
The next stop is vanity publishing. Here you find the so-called "self-publishing services" along with the true vanities. In this area, the publishers run the gamut from A Very Bad Idea right the way down to An Out-And-Out Scam, with a vast morass of well-intentioned-but-undercapitalized and well-intentioned-but-incompetent in between. From an author's point of view, there's no practical difference between a scammer and an incompetent: both are time-and-money sinks; neither will get your book into the hands of readers.
Yog's Law will keep you safe from this part of the publishing landscape. Use it as your compass and your guide.
Last is true self-publishing. Yog's Law is true here, too. Self-publishing is the part of the map where the author hires the editor, hires the cover artist, the typesetter, the proofreader, contracts the printer, buys the ISBN, arranges distribution, promotion, marketing, and carries out every other aspect of publishing. What you need to recall is that while the author is the publisher, "publisher" and "author" are separate roles. One of the classic mistakes I see with self-published authors is that they don't put "paying the author" in their business plan as an expense. The money still needs to move from one pocket to another. Those pockets may be in the same pair of pants, but that movement must be in the business plan, and it has to happen. Here too, Yog's Law is completely true, and will help the self-publisher run his/her business as a business.
Avoid unhappy surprises. Live by Yog's Law.