Rename test
Extract renderPart function
Remove unused variable