The legacy_aware_routes setting is documented here:
However, as of 5.4, or at least 5.4.4, this setting does not work as described. This setting was moved as described in the "upgrade to 6.0" doc:
Please update the relevant documentation to reflect when this setting got moved - i.e. 5.4.x, not 6.0.