can't we find a single place to apply that? instead of both buildRendering and here? Isn't there a method that is called in both cases?