Extracting reusable methods