Most seem to consider NM into the back of a disco or box ok. Running it thru a LB is not ok. You would need to switch wiring methods at the plane of the wall.