Extract newtype function if it's present