Have you tried acid -base extraction. for an basic drug:Take a dilute aqueous acid solution using same acid foming the salt, add organic solvent, discard the aqueous layer,: then add basic aqueous solution, usually NaOH, add organic solvent, collect organic solvent and evaporate the solvent, leaving the free base Nafcillin. For a acidic frug, reverse order of the acid and base solutions.