Reused code inside libasiotap