Thread:Extension talk:Favorites/Split the tag output into namespaces

Would it be possible to split the tag output on a user page into namespaces as on Special:Favoritelist? I quite don't know which class to copy.