Rules FAQ
Out-of-faction references your House card, and neutrals do not count as out-of-faction. Therefore if you are playing a Targaryen/Banner X deck, Wise Maester can return attachments or events from house X to your hand. If you are playing a House X/Banner Dragon, Wise Maester can return Targaryen attachments or events to your hand.