It might make sense to make this shared part of the pattern common code and append the varying width/boundary on.