Breakdown filter_metaprogram into smaller functions
Fix typo in comment
Don't take into account instantiation kind in full mode while filtering