Move classifying logic from saleor to satchless

Do not merge yet, docs missing.