Move component->prepare() to rendering