Remove one routine only used from one place in mxll
Description
Replace it with another routine that is only using local information. This also simplifies the code in the Maxwell routine.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.