See bug 19933 for the part 1 I will need help for the SIP code (C4::SIP::ILS::Patron->new) At this point there is only one occurrence of C4::Members::patronflags left in this module and I have no idea how to remove it safely