Refactoring: move bridge angle detection to a separate class for easier unit testing