DISCL-235: Code review Friday refactorings

This is preliminary draft review
yes, uint8_t *