OCSADV-27 Port MagnitudeLimits to scala and rename it MagnitudeConstraints #time 1h