attachment: Refactoring

* Remove unnecessary methods and parameters.
* Rename parameters correctly.