Refactor BPM calc into method