Application of GENERIC-based coarse-graining methods to the formulation of models for collective dislocation behavior