REAFACTORING more readable function body.

mix of case and patern matching, same in both modules, with one
differance to be pointed out as possible bug.
Make `process_item_attrs` look the same while keeping logic intact.

Additionaly added explicit handling (or ignoring if you will)
`<<"ask">>` attribute.

Now you can easily see differance in JID usage.