Extracted both environment forms in a single directive