Could you refactor the two methods to share some code? GetTimeOutValue(string key, TimeSpan default)