Modularise decodeCN5OriginDirect