Factor out SubAlarmDefinition class into separate file

Change-Id: Ica644ada7b97f974a542a96fdf0d424b154a2e96