Refactor destiny (transport layer) module