Factor out code to find numeric rank of face cards