The more folks who put up with this nonsense the more pervasive it becomes.
you write the code, you own it. if they want to use it, demand payment to sign the rights over.