you have the right idea
an acidic alkaloid extraction can extract a cleaner product
though distilling an acid would require more energy. just do a good ol' A/B(/A , if storing).
"Nothing is true, everything is permitted." ~ hassan i sabbah
"Experiments are the only means of attaining knowledge at our disposal. The rest is poetry, imagination." -Max Planck