New York (CNN Business) Bank of America will end its association with companies that provide prisoner and immigrant detention services at both the state and federal levels. The move comes amid growing public concern about the nation's border policies.

Bank of America BAC A spokesperson said Wednesday thathas discussed the issue with its clients that provide those services. While the bank appreciates "steps they have taken to properly execute their contractual and humanitarian responsibilities," it ultimately decided to "exit the relationships."

"Lacking further legal and policy clarity, and in recognition of the concerns of our employees and stakeholders in the communities we serve, it is our intention to exit these relationships," the spokesperson said.

Bank of America declined to comment Wednesday regarding the companies with which it had previously worked.