Refactor render omit pertial