Refactor bitrate calculation, clean code