Encoding electromagnetic transformation laws for dimensional reduction. (25th May 2020)