Fill in layouts for spec_code and spec_codes.