HOUSTON -- In a move executed in the final seconds before the non-waiver deadline expired, the Houston Astros traded right-hander Jarred Cosart, utility man Enrique Hernandez and minor league outfielder Austin Wates to the Miami Marlins in exchange for a trio of minor-leaguers plus a 2015 compensation draft pick.

The jettisoning of Cosart, a 24-year-old Houston native acquired from the Philadelphia Phillies at the 2011 trade deadline, was moderately surprising. Cosart was long considered a top prospect for both the Phillies and Astros, and over 30 career starts in Houston, he posted an 11-9 record and 3.57 ERA.

However, his lingering control issues continued to dog him this season -- only two pitchers have a worse walk rate in the major leagues. And with four Houston right-handed pitchers landing on MLB.com's updated prospect rankings this week, the Astros traded from a position of organizational strength.

"We've said all along we have pitching depth," Astros general manager Jeff Luhnow said. "We have a lot, and we have a lot of guys that aren't on that list. We've got guys all the way up and down the system."

By acquiring center fielder Jake Marisnick, the Astros can immediately address their outfield, depleted by injuries to Dexter Fowler, George Springer and Alex Presley. The Astros also received third baseman Colin Moran, the sixth overall pick of the 2013 draft, in the deal.

Moran hit .294 with 21 doubles, five home runs and 33 RBIs for high Class A Jupiter. He will report to Double-A Corpus Christi alongside right-hander Mark Appel, the top overall pick last summer.

The opportunity to add Moran to their system was too enticing for the Astros to bypass, even at the expense of Cosart and his potential.

"If you would have asked me how would you like to have Appel and Moran, I would have thought there was no way to pull that off," Luhnow said. "(Moran is) a unique guy. He's still young; he's still the age of most of the guys coming out of the draft this year. And he's had success. We think he's going to be a really special player."