Break get_add_instance out of www_add; subclass it in Layout to pull mobileTemplateId and mobileStyleTemplateId from the parent if the parent is also a Layout.