[TASK] extracted rendering into utility function and remove the f:render and namespace declarations from patterns