(2/2) quiethours: de-duplicate code and add moar helper methods

Change-Id: I7ba17e6ba4fbb9fc889faa61271f0a2b6b761c69
Signed-off-by: Arnav Gupta <championswimmer@aokp.co>