LocationStateMachine partial class for readability