Refactor interval measurement into note