Refactor send intent.