Refactor logic around running state of Spotify.app