Separate parameters logic
merge to build context