PassThroughCode refactoring and create PassThrough Core and API for enhace reusability

Need to get rid of static block here