DISCL-235: Code review Friday refactorings

This is preliminary draft review
1000 is magic