Practice, muscle memory, and a willingness to break your cast to get out of an AoE. There really is no other way to memorize mechanics(it's the same as with memorizing any form of password).