mnist: refactored vars