Ransford Environmental Solutions, now at 218 Chandler St. in Worcester, has bought a building at 786 Hartford Turnpike (Route 20) in Shrewsbury and intends to move there by the end of the year.