[layouts] Remove redundant code in generateDefaultLayoutParams()