Move logic from recorderui to utils.readable