Catalysis of the reaction: thebaine + 2-oxoglutarate + O2 <=> neopinone + formaldehyde + succinate + carbon dioxide