Revert "Fix handling the 'maxrecords' key and the 'records' key of the related context"

This reverts commit 764d6df6124c08db1b25a4d478f3d82bcdab9d51.