You don't have to be loyal. Instead, be professional.
That means you retain many of the qualities of loyalty -- dilligence and an eye for the advantage of your client or employer -- without being afraid to ask for the going rate for your services.
A professional is also prepared to argue for the best interests of the client and to refuse to act unethically, even when the client doesn't want to hear it. Our cousin professions enjoy pretty strong legal support for the latter.