Frame bonus score calculator refactored