A modular construction of positroid varieties