Modularizing CDA parsing logic

Author: Maulik Patel