In other news I managed to get lineageOS installed on my moto g5. I got stuck installing the ROM until I read I needed a 64bit TWRP recovery rather than 32, (and none of the version numbering reflects architecture).
All good now. Various APKs installed and aside from omitting GAPPS this time around, everything is as it was.