Some fretboard code refactor